/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Environnement.java
 *
 * Created on 3 juin 2009, 00:07:56
 */

package caylus.GUI;

/**
 *
 * @author CeZar
 */
public class Environnement extends javax.swing.JFrame {

    /** Creates new form Environnement */
    public Environnement() {
        initComponents();
        initComponent2();
    }

    private void initComponent2()
    {
        buttonGroupTemplate.add(jRadioButtonDefault);
        buttonGroupTemplate.add(jRadioButtonGothique);
        buttonGroupTemplate.add(jRadioButtonMystere);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroupTemplate = new javax.swing.ButtonGroup();
        jPanelTemplate = new javax.swing.JPanel();
        jRadioButtonDefault = new javax.swing.JRadioButton();
        jRadioButtonGothique = new javax.swing.JRadioButton();
        jRadioButtonMystere = new javax.swing.JRadioButton();
        jPanelDefault = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jPanelGothique = new javax.swing.JPanel();
        jLabel2 = new javax.swing.JLabel();
        jPanelMystere = new javax.swing.JPanel();
        jLabel3 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jPanelTemplate.setBorder(javax.swing.BorderFactory.createTitledBorder("Template"));

        jRadioButtonDefault.setText("Default");
        jRadioButtonDefault.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jRadioButtonDefaultMouseClicked(evt);
            }
        });

        jRadioButtonGothique.setText("Gothique");
        jRadioButtonGothique.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jRadioButtonGothiqueMouseClicked(evt);
            }
        });

        jRadioButtonMystere.setText("Mystère");
        jRadioButtonMystere.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jRadioButtonMystereMouseClicked(evt);
            }
        });

        jLabel1.setForeground(new java.awt.Color(102, 204, 255));
        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/LoadIcon.png"))); // NOI18N

        javax.swing.GroupLayout jPanelDefaultLayout = new javax.swing.GroupLayout(jPanelDefault);
        jPanelDefault.setLayout(jPanelDefaultLayout);
        jPanelDefaultLayout.setHorizontalGroup(
            jPanelDefaultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelDefaultLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jLabel1)
                .addContainerGap())
        );
        jPanelDefaultLayout.setVerticalGroup(
            jPanelDefaultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDefaultLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jLabel2.setForeground(new java.awt.Color(102, 204, 255));
        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/LoadIcon.png"))); // NOI18N

        javax.swing.GroupLayout jPanelGothiqueLayout = new javax.swing.GroupLayout(jPanelGothique);
        jPanelGothique.setLayout(jPanelGothiqueLayout);
        jPanelGothiqueLayout.setHorizontalGroup(
            jPanelGothiqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelGothiqueLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jLabel2)
                .addContainerGap())
        );
        jPanelGothiqueLayout.setVerticalGroup(
            jPanelGothiqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelGothiqueLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel2)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jLabel3.setForeground(new java.awt.Color(102, 204, 255));
        jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/LoadIcon.png"))); // NOI18N

        javax.swing.GroupLayout jPanelMystereLayout = new javax.swing.GroupLayout(jPanelMystere);
        jPanelMystere.setLayout(jPanelMystereLayout);
        jPanelMystereLayout.setHorizontalGroup(
            jPanelMystereLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelMystereLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jLabel3)
                .addContainerGap())
        );
        jPanelMystereLayout.setVerticalGroup(
            jPanelMystereLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelMystereLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel3)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanelTemplateLayout = new javax.swing.GroupLayout(jPanelTemplate);
        jPanelTemplate.setLayout(jPanelTemplateLayout);
        jPanelTemplateLayout.setHorizontalGroup(
            jPanelTemplateLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelTemplateLayout.createSequentialGroup()
                .addGap(55, 55, 55)
                .addComponent(jRadioButtonDefault)
                .addGap(33, 33, 33)
                .addComponent(jRadioButtonGothique)
                .addGap(18, 18, 18)
                .addComponent(jRadioButtonMystere)
                .addContainerGap(35, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelTemplateLayout.createSequentialGroup()
                .addContainerGap(43, Short.MAX_VALUE)
                .addComponent(jPanelDefault, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(10, 10, 10)
                .addComponent(jPanelGothique, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanelMystere, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(25, 25, 25))
        );
        jPanelTemplateLayout.setVerticalGroup(
            jPanelTemplateLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelTemplateLayout.createSequentialGroup()
                .addGroup(jPanelTemplateLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jRadioButtonDefault)
                    .addComponent(jRadioButtonGothique)
                    .addComponent(jRadioButtonMystere))
                .addGap(27, 27, 27)
                .addGroup(jPanelTemplateLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanelDefault, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanelGothique, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanelMystere, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(33, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelTemplate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(14, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelTemplate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(93, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jRadioButtonDefaultMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jRadioButtonDefaultMouseClicked
        if (jRadioButtonDefault.isSelected())
        {
            jPanelDefault.setBorder(javax.swing.BorderFactory.createEtchedBorder());
            jPanelGothique.setBorder(null);
            jPanelMystere.setBorder(null);
        }
        else
          jPanelDefault.setBorder(null);
    }//GEN-LAST:event_jRadioButtonDefaultMouseClicked

    private void jRadioButtonGothiqueMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jRadioButtonGothiqueMouseClicked
         if (jRadioButtonGothique.isSelected())
        {
            jPanelGothique.setBorder(javax.swing.BorderFactory.createEtchedBorder());
            jPanelDefault.setBorder(null);
            jPanelMystere.setBorder(null);
        }
        else
          jPanelGothique.setBorder(null);
    }//GEN-LAST:event_jRadioButtonGothiqueMouseClicked

    private void jRadioButtonMystereMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jRadioButtonMystereMouseClicked
        if (jRadioButtonMystere.isSelected())
        {
            jPanelMystere.setBorder(javax.swing.BorderFactory.createEtchedBorder());
            jPanelDefault.setBorder(null);
            jPanelGothique.setBorder(null);
        }
        else
          jPanelMystere.setBorder(null);
    }//GEN-LAST:event_jRadioButtonMystereMouseClicked

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup buttonGroupTemplate;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JPanel jPanelDefault;
    private javax.swing.JPanel jPanelGothique;
    private javax.swing.JPanel jPanelMystere;
    private javax.swing.JPanel jPanelTemplate;
    private javax.swing.JRadioButton jRadioButtonDefault;
    private javax.swing.JRadioButton jRadioButtonGothique;
    private javax.swing.JRadioButton jRadioButtonMystere;
    // End of variables declaration//GEN-END:variables

}
